const init=false
export const LoadingReducer=(prevState=init,action)=>{
    const {type,data}=action
    switch (type){
        case "changeLoading":
            const newState={...prevState}
            newState.isLoading=data
            return newState
        default:
            return prevState
    }
}